package com.lagou.web.controller;

import com.lagou.service.HelloService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class IndexController {
    @Reference(timeout = 500, retries = 0)
    private HelloService helloService;

    @GetMapping("/")
    @ResponseBody
    public String index() {
        return helloService.hello();
    }
}
